package com.syh.jn.scm.infrastructure.repository.model.system;

import com.syh.core.ddd.infrastructure.repository.model.SuperModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_SYSTEM_LOGIN_LOG")
@EqualsAndHashCode(callSuper = true)
public class LoginLogModel extends SuperModel {

	@Column(name="login_account" , columnDefinition=("varchar(50) COMMENT '登录账号'"))
	private String loginAccount;

	@Column(name="login_name" , columnDefinition=("varchar(50) COMMENT '登录用户名'"))
	private String loginName;

	@Column(name="terminal_type" , columnDefinition=("varchar(50) COMMENT '终端类型:Chrome,IE,App,Firefox'"))
	private String terminalType;

	@Column(name="account_type" , columnDefinition=("varchar(50) COMMENT '账号类型:上游,下游,供应商'"))
	private String accountType;

	@Column(name="ip" , columnDefinition=("varchar(50) COMMENT '登录ip'"))
	private String ip;

	@Column(name="CREATE_TIME_STAMP" , columnDefinition=("bigint COMMENT '登录时间'"))
	private Long createTimeStamp;

}
